package com.woniuxy.school.online.repair.mapper;

import com.woniuxy.school.online.repair.entity.UserProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 项目人员关系表 Mapper 接口
 * </p>
 *
 * @author 吴彦祖
 * @since 2025年05月13日
 */
@Mapper
public interface UserProjectMapper extends BaseMapper<UserProject> {

    /**
     * 更改维修员状态为禁用editRepairState2
     */
    @Update("update user_project set state =2 where state=1 and repairUser=#{repairUser}")
    int editRepairState2(@Param("repairUser") Long repairUser);
}
